package com.example.questionaire;

import android.os.Bundle;
import android.app.Activity;
import android.content.Intent;
import android.view.Menu;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class Start extends Activity implements OnClickListener {

	private Button LoginButton;
	private Button CreateButton;
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_start);
		LoginButton = (Button) findViewById(R.id.button1);
		LoginButton.setOnClickListener(this);
		CreateButton = (Button) findViewById(R.id.button2);
		CreateButton.setOnClickListener(this);
	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.activity_start, menu);
		return true;
	}
	
	@Override
	public void onClick(View v) {
		if(v==LoginButton)
		{
			//Intent myIntent = new Intent(Start.this, Frageboegen.class);
			//Intent myIntent = new Intent(Start.this, Fragenauswahl.class);
			Intent myIntent = new Intent(Start.this, Serverdetails.class);
			//Intent myIntent = new Intent(Start.this, Serverliste.class);
			//Intent myIntent = new Intent(Start.this, Statistiken.class);
			Start.this.startActivity(myIntent);
		}
		
	}

}
